package server;

import java.util.Collection;

public class UpdateException extends Exception {
	private static final long serialVersionUID = 1L;
	private String details;
	private Collection<NodeInfo> brokenNodes;
	
	public UpdateException(String details) {
		this.details = details;
	}

	public UpdateException(String details, Collection<NodeInfo> nodes) {
		this.details = details;
		this.brokenNodes = nodes;
	}	
	
	@Override
	public String getMessage() {	
		return details;
	}

	public Collection<NodeInfo> getBrokenNodes() {
		return brokenNodes;
	}	
}
